package scenarios;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import LBJ2.util.StudentT;

public class Cenario2_Tarefa3 {
	
	private final static Logger logger = LoggerFactory.getLogger(Cenario2_Tarefa3.class);

	public static void main(String[] args) {
		double[] d1fifo = new double[] {
				16.5662,
				16.6172,
				15.9535,
				15.6913,
				15.9498
		};
		double bla[] = StudentT.confidenceInterval(d1fifo, 0.1d);
		logger.info("IC: ({}, {})", bla[0] - bla[1], bla[0] + bla[1]);

		double[] d2fifo =new double[] {
				30.6522,
				31.9417,
				33.3875,
				32.915,
				32.2473
		};
		bla = StudentT.confidenceInterval(d2fifo, 0.1d);
		logger.info("IC: ({}, {})", bla[0] - bla[1], bla[0] + bla[1]);

		double[] d1red = new double[] {
				16.32,
				16.9975,
				16.6433,
				16.8291,
				16.5825
		};
		bla = StudentT.confidenceInterval(d1red, 0.1d);
		logger.info("IC: ({}, {})", bla[0] - bla[1], bla[0] + bla[1]);
		
		double[] d2red = new double[] {
				32.0583,
				32.3433,
				32.855,
				32.3066,
				32.5366
		};
		bla = StudentT.confidenceInterval(d2red, 0.1d);
		logger.info("IC: ({}, {})", bla[0] - bla[1], bla[0] + bla[1]);

	}

}
